import requests from '@/utils/request'

/**
 * 用户表
 * @returns 
 */
export const getAllUser = () => requests({ url: '/bs/user', method: 'get' })
//分页模糊查询
export const getPageUser = (params) => requests({url: '/bs/user/page', method: 'get', params})
//添加修改用户表数据
export const intUpdUser = (data) => requests({url: '/bs/user', method: 'post', data})
//删除用户数据
export const delUserId = (params) => requests({ url: '/bs/user/' + params, method: 'delete' })
//批量删除用户数据
export const delUsers = (data) => requests({ url: '/bs/user/dels/', method: 'post', data })
//修改用户关键字
export const updUserShopTap = (data) => requests({ url: '/bs/user/updUserShopTap/', method: 'post', data })

/**
 * 商户表
 * @returns 
 */
// 查询店铺
export const getPageShop = (params) => requests({ url: '/bs/shop/page', method: 'get', params })
//添加修改店铺表数据
export const intUpdShop = (data) => requests({ url: '/bs/shop', method: 'post', data })
//删除店铺数据
export const delShopId = (params) => requests({ url: '/bs/shop/' + params, method: 'delete' })
//批量删除店铺数据
export const delShops = (data) => requests({ url: '/bs/shop/dels/', method: 'post', data })
//申请入驻表
export const getShoptemp = (params) => requests({ url: '/bs/shoptemp/page', method: 'get', params })


/**
 * 点评表
 * @returns 
 */
// 查询点评
export const getPageDiscuss = (params) => requests({ url: '/bs/discuss/page', method: 'get', params })
//添加修改点评表数据
export const insUpdDiscuss = (data) => requests({ url: '/bs/discuss', method: 'post', data })
//上传图片
export const uploadDiscuss = (data) => requests({ url: '/bs/discuss/arrupload', method: 'post', data })


/**
 * 管理员表
 * @returns 
 */





export function test(){
    return requests({
        url:'/bs/getAllShop',
        method:'get',
    })
}